package com.start.oss.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.start.oss.entity.StartSysOssEntity;
import com.start.oss.mappers.StartSysOssMapper;
import com.start.oss.service.StartSysOssService;
import org.springframework.stereotype.Service;

@Service
public class StartSysOssServiceImpl extends ServiceImpl<StartSysOssMapper, StartSysOssEntity> implements StartSysOssService {
    @Override
    public StartSysOssEntity getByPath(String url) {
        LambdaQueryWrapper<StartSysOssEntity> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(StartSysOssEntity::getOssUrl, url);
        return getOne(lambdaQueryWrapper, false);
    }
}
